//
//  ViewController.m
//  瀑布流
//
//  Created by 刘家俊 on 17/4/25.
//  Copyright © 2017年 Andrew. All rights reserved.
//

#import "ViewController.h"
#import "PubuliuViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(20, 74, 100, 50)];
    [btn addTarget:self action:@selector(btnClick) forControlEvents:UIControlEventTouchUpInside];
    [btn setTitle:@"进入瀑布流" forState:UIControlStateNormal];
    btn.backgroundColor = [UIColor greenColor];
    [self.view addSubview:btn];
}

- (void)btnClick
{
    PubuliuViewController *pubuvc = [[PubuliuViewController alloc] init];
    [self.navigationController pushViewController:pubuvc animated:YES];
}



@end
